package com.pan.structual.decorator.decorator.impl;

import com.pan.structual.decorator.frame.MyFrame;
import com.pan.structual.decorator.decorator.MyFrameDecorator;

import javax.swing.*;
import java.awt.*;

public class BlueBackgroundFrameDecorator extends MyFrameDecorator {
    public BlueBackgroundFrameDecorator(MyFrame frame) {
        super(frame);
    }

    @Override
    public void disposition() {
        super.disposition();
        JFrame frame = getFrame();
        frame.getContentPane().setBackground(
                Color.BLUE
        );
    }
}
